package chixing.day08.homework;

public class BankAccountTest {
    public static void main(String[] args) {
        MyCheckingAccount m1 = new MyCheckingAccount("101",50000);
        MySavingsAccount m2 = new MySavingsAccount("102",10000);
        MySavingsAccount m3 = new MySavingsAccount("103",10000);
        MySavingsAccount m4 = new MySavingsAccount("104",10000);
        MySavingsAccount m5 = new MySavingsAccount();
        m5.setAccountNumber("105");
        m5.setBalance(7000);

        System.out.println("账户总数:"+ BankAccount.getAllCountNumber());

        m1.monthlyUpdate();
        m1.monthlyUpdate();
        m1.monthlyUpdate();
        System.out.println(m1.getBalance());

        m2.monthlyUpdate();
        m2.monthlyUpdate();
        System.out.println(m2.getBalance());

        m3.withdraw(1000);
        System.out.println(m3.getBalance());

        m4.deposit(500);
        System.out.println(m4.getBalance());


    }
}
